<template>
  <div class="screen-container">
    <header class="screen-header">

    </header>
    <div class="screen-body">
      <section class="screen-left">
        <div class="left-top">
          <Trend></Trend>
        </div>
        <div class="left-bottom">
          <Seller></Seller>
        </div>
      </section>
      <section class="screen-middle">
        <div class="middle-top">
          <Map></Map>
        </div>
        <div class="middle-bottom"></div>
      </section>
      <section class="screen-right">
        <div class="right-top"></div>
        <div class="right-bottom"></div>
      </section>
    </div>
  </div>
</template>

<script>
import Map from '@/components/Map.vue';
import Seller from '@/components/Seller.vue';
import Trend from '@/components/Trend.vue';

export default {
  components: {
    Map,
    Seller,
    Trend
  }
}
</script>

<style lang="less" scoped>
.screen-container {
  width: 100%;
  height: 100%;
  padding: 0 20px;
  background-color: #161522;
  color: #fff;
  box-sizing: border-box;

  .screen-header {
    width: 100%;
    height: 64px;
    font-size: 20px;
    position: relative;

    > div {
      img {
        width: 100%;
      }
    }

    .title {
      position: absolute;
      left: 50%;
      top: 50%;
      font-size: 20px;
      transform: translate(-50%, -50%);
    }

    .title-right {
      display: flex;
      align-items: center;
      position: absolute;
      right: 0;
      top: 50%;
      transform: translateY(-80%);
    }
  }

  .screen-body {
    width: 100%;
    height: 100%;
    display: flex;
    margin-top: 10px;

    .screen-left {
      height: 100%;
      width: 27.6%;

      .left-top {
        height: 53%;
      }

      .left-bottom {
        height: 31%;
        margin-top: 25px;
      }
    }

    .screen-middle {
      height: 100%;
      width: 41.5%;
      margin-left: 1.6%;
      margin-right: 1.6%;

      .middle-top {
        width: 100%;
        height: 56%;
      }
    }
  }
}
</style>